package com.xiaofang.controller;

import com.xiaofang.pojo.User;
import com.xiaofang.serivce.UserSerivc;
import com.xiaofang.serivce.imp.UserSericeImp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.PipedReader;
import java.util.List;

/**
 * @program: xiaofangbackend
 * @ClassName UserController
 * @description:
 * @author: aodi
 * @create: 2025-06-19 11:23
 * @Version 1.0
 */
@RestController
@RequestMapping("/xiaofang/user")
public class UserController {


    @Autowired
     private UserSerivc userSericeImp;

        @RequestMapping("/getAllUser")
    public List<User> getAllUser()
        {

            System.out.println("getAllUser");
            List<User> allUser = this.userSericeImp.getAllUser();
            return allUser;
        }
}
